package AfterClassExercises

object p4 {
  def main(args: Array[String]): Unit = {
    val year = 2024

    if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) {
      println(s"$year 是闰年")
    } else {
      println(s"$year 不是闰年")
    }
  }
}
